﻿function expandIndexTable(x) {
    $('table#dropDownTable' + x).css({ 'display': 'none' });
    $('p#dropDownTitle' + x).toggle(
    function() { $('table#dropDownTable' + x).css({ 'display': 'block' }); },
    function() { $('table#dropDownTable' + x).css({ 'display': 'none' }); }
    );
};

function expandItemTable(x) {
    $('table#t_' + x).css({ 'display': 'none' });
    $('a#' + x).toggle(
    function() { $('table#t_' + x).css({ 'display': 'block' }); },
    function() { $('table#t_' + x).css({ 'display': 'none' }); }
    );
};

$(document).ready(function() {
    expandIndexTable(1);
    expandIndexTable(2);
    expandIndexTable(3);
    expandIndexTable(4);
    expandItemTable('s1_001');
    expandItemTable('s1_002');
    expandItemTable('s2_h01');
    expandItemTable('s2_h02');
    expandItemTable('s2_c01');
    expandItemTable('s2_c02');
    expandItemTable('s2_c03');
    expandItemTable('s2_c04');
    expandItemTable('s2_c05');
    expandItemTable('s2_c06');
    expandItemTable('s2_p01');
    expandItemTable('s2_p02');
    expandItemTable('s2_p03');
    expandItemTable('s2_p04');
    expandItemTable('s2_p05');
    expandItemTable('s2_f01');
    expandItemTable('s2_f02');
    expandItemTable('s2_f03');
    expandItemTable('s2_f04');
    expandItemTable('s2_f05');
    expandItemTable('s2_f06');
    expandItemTable('s2_s01');
    expandItemTable('s2_s02');
    expandItemTable('s2_s03');
    expandItemTable('s2_w01');
    expandItemTable('s2_w02');
    expandItemTable('s2_w03');
    expandItemTable('s2_w04');
    expandItemTable('s2_w05');
    expandItemTable('tele_s1_001');
    expandItemTable('tele_s1_002');
    expandItemTable('s3_t01');
    expandItemTable('s3_t02');
    expandItemTable('s3_t03');
    expandItemTable('s3_t04');
    expandItemTable('s3_t05');
    expandItemTable('s3_t06');
    expandItemTable('s3_d01');
    expandItemTable('s3_d02');
    expandItemTable('s3_d03');
    expandItemTable('s3_w01');
    expandItemTable('s3_w02');
    expandItemTable('s3_w03');
    expandItemTable('s3_w04');
    expandItemTable('s3_w05');
    expandItemTable('s3_w06');
    expandItemTable('s3_w07');
    expandItemTable('s3_w08');
    expandItemTable('s3_w09');
    expandItemTable('s3_w10');
    expandItemTable('s3_e01');
    expandItemTable('s3_e02');
    expandItemTable('s3_e03');
    expandItemTable('s3_e04');
    expandItemTable('s3_e05');
    expandItemTable('o1_001');
    expandItemTable('o2_001');
    expandItemTable('o2_002');
    expandItemTable('o3_001');
    expandItemTable('g1_000');
    expandItemTable('g2_001');
    expandItemTable('g2_002');
    expandItemTable('g3_001');
});

/*$('.linkClass').foreach()
{
change(.id);
}*/